import defaultHttp from "@/utils/request.js";
export const categoryAdd = (data) => {
  return defaultHttp({
    url: "/category/add",
    method: "post",
    data,
  });
};

export const categoryEdit = (data) => {
  return defaultHttp({
    url: "/category/edit",
    method: "post",
    data,
  });
};
export const categoryList = (data) => {
  return defaultHttp({
    url: "/category/list",
    method: "post",
    data
  });
};
export const categoryDelete = (data) => {
  return defaultHttp({
    url: "/category/delete",
    method: "post",
    data,
  });
};
